// data/wordbooks.js

// 单词书数据
const wordbooks = [
  {
    id: 1,
    title: '大学英语四级',
    description: '包含大学英语四级考试必备的3000个单词',
    icon: 'graduation-cap',
    coverImage: '/images/book_cover_1.png',
    author: '英语学习团队',
    status: '已发布',
    createDate: '2023-01-15',
    updateDate: '2023-06-20',
    wordCount: 3000,
    chapters: [
      { id: 1, title: '第一章：基础词汇', wordCount: 600 },
      { id: 2, title: '第二章：核心词汇', wordCount: 800 },
      { id: 3, title: '第三章：高频词汇', wordCount: 700 },
      { id: 4, title: '第四章：难点词汇', wordCount: 500 },
      { id: 5, title: '第五章：易错词汇', wordCount: 400 }
    ]
  },
  {
    id: 2,
    title: '日常英语口语',
    description: '1500个日常英语口语必备单词',
    icon: 'language',
    coverImage: '/images/book_cover_2.png',
    author: '口语达人',
    status: '已发布',
    createDate: '2023-03-22',
    updateDate: '2023-07-10',
    wordCount: 1500,
    chapters: [
      { id: 1, title: '第一章：问候与介绍', wordCount: 300 },
      { id: 2, title: '第二章：日常生活', wordCount: 400 },
      { id: 3, title: '第三章：外出旅行', wordCount: 350 },
      { id: 4, title: '第四章：饮食与购物', wordCount: 300 },
      { id: 5, title: '第五章：社交与情感', wordCount: 150 }
    ]
  },
  {
    id: 3,
    title: '商务英语',
    description: '2000个商务英语常用单词',
    icon: 'briefcase',
    coverImage: '/images/book_cover_3.png',
    author: '商务英语专家',
    status: '已发布',
    createDate: '2023-02-10',
    updateDate: '2023-05-30',
    wordCount: 2000,
    chapters: [
      { id: 1, title: '第一章：商务基础', wordCount: 400 },
      { id: 2, title: '第二章：会议用语', wordCount: 350 },
      { id: 3, title: '第三章：市场营销', wordCount: 300 },
      { id: 4, title: '第四章：金融与贸易', wordCount: 500 },
      { id: 5, title: '第五章：职场沟通', wordCount: 450 }
    ]
  },
  {
    id: 4,
    title: '考研核心词汇',
    description: '5500个考研英语必备核心词汇',
    icon: 'book',
    coverImage: '/images/book_cover_4.png',
    author: '考研英语教研组',
    status: '已发布',
    createDate: '2023-04-05',
    updateDate: '2023-08-15',
    wordCount: 5500,
    chapters: [
      { id: 1, title: '第一章：基础词汇', wordCount: 1000 },
      { id: 2, title: '第二章：高频词汇', wordCount: 1500 },
      { id: 3, title: '第三章：难点词汇', wordCount: 1200 },
      { id: 4, title: '第四章：熟词僻义', wordCount: 800 },
      { id: 5, title: '第五章：写作必备词汇', wordCount: 1000 }
    ]
  }
];

// 单词数据 - 这里仅为示例，实际应用中可以根据单词书ID和章节ID加载对应单词
const words = {
  // 大学英语四级单词
  1: [
    {
      id: 1001,
      word: 'abandon',
      phonetic: '/əˈbændən/',
      definition: 'v. 放弃，抛弃；n. 放纵',
      example: 'They had to abandon their lands and property to the invading forces.',
      exampleTranslation: '他们不得不把土地和财产舍弃给侵略军。',
      synonyms: ['desert', 'leave', 'quit'],
      mastered: false
    },
    {
      id: 1002,
      word: 'ability',
      phonetic: '/əˈbɪləti/',

      definition: 'n. 能力，才能；本领',
      example: 'She has the ability to speak English fluently.',
      exampleTranslation: '她能流利地说英语。',
      synonyms: ['capacity', 'capability', 'skill'],
      mastered: false
    },
    {
      id: 1003,
      word: 'abnormal',
      phonetic: '/æbˈnɔːml/',
      definition: 'adj. 反常的，异常的；不规则的',
      example: 'It is abnormal for a man to walk in his sleep.',
      exampleTranslation: '梦游是不正常的现象。',
      synonyms: ['unusual', 'irregular', 'deviant'],
      mastered: false
    },
    {
      id: 1004,
      word: 'aboard',
      phonetic: '/əˈbɔːd/',
      definition: 'adv. 在船上；prep. 上船',
      example: 'They went aboard the ship.',
      exampleTranslation: '他们上了船。',
      synonyms: ['onboard', 'on ship'],
      mastered: false
    },
    {
      id: 1005,
      word: 'absolute',
      phonetic: '/ˈæbsəluːt/',
      definition: 'adj. 绝对的；完全的；专制的',
      example: 'There is no absolute standard for beauty.',
      exampleTranslation: '美是没有绝对标准的。',
      synonyms: ['complete', 'total', 'unqualified'],
      mastered: false
    },
    {
      id: 1006,
      word: 'absorb',
      phonetic: '/əbˈzɔːb/',
      definition: 'v. 吸收；吸引；承受',
      example: 'Plants absorb nutrients from the soil.',
      exampleTranslation: '植物从土壤中吸收养分。',
      synonyms: ['soak up', 'take in', 'assimilate'],
      mastered: false
    },
    {
      id: 1007,
      word: 'abstract',
      phonetic: '/ˈæbstrækt/',
      definition: 'adj. 抽象的；n. 摘要；v. 提取',
      example: 'Abstract art is sometimes difficult to understand.',
      exampleTranslation: '抽象艺术有时很难理解。',
      synonyms: ['theoretical', 'conceptual', 'nonrepresentational'],
      mastered: false
    },
    {
      id: 1008,
      word: 'abundant',
      phonetic: '/əˈbʌndənt/',
      definition: 'adj. 丰富的；充裕的；盛产',
      example: 'The area is abundant in wildlife.',
      exampleTranslation: '这个地区野生动物很多。',
      synonyms: ['plentiful', 'copious', 'ample'],
      mastered: false
    },
    {
      id: 1009,
      word: 'abuse',
      phonetic: '/əˈbjuːs/',
      definition: 'n./v. 滥用；虐待；辱骂',
      example: 'The government has abused its power.',
      exampleTranslation: '政府滥用了权力。',
      synonyms: ['misuse', 'mistreat', 'insult'],
      mastered: false
    },
    {
      id: 1010,
      word: 'academic',
      phonetic: '/ˌækəˈdemɪk/',
      definition: 'adj. 学术的；理论的；n. 学者',
      example: 'She has a lot of academic experience.',
      exampleTranslation: '她有丰富的学术经验。',
      synonyms: ['scholarly', 'educational', 'intellectual'],
      mastered: false
    }
  ],
  // 日常英语口语单词
  2: [
    {
      id: 2001,
      word: 'hello',
      phonetic: '/həˈləʊ/',
      definition: 'int. 喂；你好',
      example: 'Hello, how are you?',
      exampleTranslation: '你好，你好吗？',
      synonyms: ['hi', 'hey'],
      mastered: false
    },
    {
      id: 2002,
      word: 'thank',
      phonetic: '/θæŋk/',
      definition: 'v. 感谢；n. 感谢',
      example: 'Thank you for your help.',
      exampleTranslation: '谢谢你的帮助。',
      synonyms: ['appreciate', 'grateful'],
      mastered: false
    },
    // 更多单词...},
  ],
  // 商务英语单词
  3: [
    {
      id: 3001,
      word: 'meeting',
      phonetic: '/ˈmiːtɪŋ/',
      definition: 'n. 会议；集会；v. 相遇(meet的ing形式)',
      example: 'We have a meeting every Monday.',
      exampleTranslation: '我们每周一开会。',
      synonyms: ['conference', 'gathering', 'assembly'],
      mastered: false
    },
    // 更多单词...},
  ],
  // 考研核心词汇
  4: [
    {
      id: 4001,
      word: 'ambition',
      phonetic: '/æmˈbɪʃn/',
      definition: 'n. 野心，雄心；志向，抱负',
      example: 'His ambition is to become a doctor.',
      exampleTranslation: '他的志向是成为一名医生。',
      synonyms: ['aspiration', 'goal', 'desire'],
      mastered: false
    },
    // 更多单词...
  ]
};

module.exports = {
  wordbooks,
  words
};